package com.yunao.web.form;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;

@Data
public class SubjectForm {

    private String id;

    @NotBlank(message = "专题名称不能为空")
    @Length(min = 2 ,max = 15,message = "专题名称长度不能小于2大于15")
    private String name;
    @NotBlank(message = "专题关键词不能为空")
    private String word;

    private String parentid="0";


    private String removeWord;

//    private String localtion;
    private String province;
    private String city;

    private String query;

    private Integer userId;

    private Integer organId;

    //默认为专题
    private String type="0";

}
